﻿using System.Text;
using RAP.Framework.Libary.DomTemplateBuilder.Element;
using RAP.Framework.Libary.DomTemplateBuilder.Interface;

namespace RAP.Framework.Libary.DomTemplateBuilder.Handler
{
	public class DebuggerHandler : HandlerBase
    {
        public new Debugger Element
        {
            get
            {
                return base.Element as Debugger;
            }
        }

        public override void DoRender ( StringBuilder writer, object rootParamObject, object parentParamObject, ITemplateRenderContext context )
        {
            //使用this.Element.Name=="XXOO"作为断点条件
            base.DoRender( writer, rootParamObject, parentParamObject, context );
            DomTemplateManager.FireDebuggerElement( this.Element, this );
        }
    }
}
